package com.tkmybatis;

import net.javacrumbs.shedlock.spring.annotation.EnableSchedulerLock;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@EnableSchedulerLock(defaultLockAtMostFor = "PT50S")
@EnableCaching
@EnableEurekaClient
@MapperScan(value= {"com.tkmybatis.mapper","com.tkmybatis.posrtgre.mapper","com.tkmybatis.notextendmapper"})   //如果是继承了baseMapper的mapper不需要在dao层加@Mapper的注解
public class TkMybatisDemo3Application {

    public static void main(String[] args) {
        SpringApplication.run(TkMybatisDemo3Application.class, args);
    }

}
